package com.pth.test;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.model.Exam;
import com.pth.service.ExamService;
import com.pth.utils.dingshi;

public class testAction extends ActionSupport {

 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
private User user;
 private ExamService examService;
 private dingshi dingshi;
 
@Override
	public String execute() throws Exception {


	List<Exam> exams=examService.getExamONForTask();
	dingshi.execute();
	System.out.println(exams.size());
	return SUCCESS;
}

public void setUser(User user) {
	this.user = user;
}

public User getUser() {
	return user;
}

public void setExamService(ExamService examService) {
	this.examService = examService;
}

public ExamService getExamService() {
	return examService;
}

public void setDingshi(dingshi dingshi) {
	this.dingshi = dingshi;
}

public dingshi getDingshi() {
	return dingshi;
}	
	
	
}
